import { defineStore } from 'pinia';

export const personalStore = defineStore('personal', {
    state: () => {
        return {
            username: "",
        }
    },
    getters: {},
    actions: {
        Newusername(payload) {
            this.username = payload;
        }
    },
    // 数据持久化
    // persist: {
    //     enabled: true
    // }
})